package com.homegoods.orderinfodetail.model;

import com.homegoods.orderinfodetail.item.AddressManagerItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

/**
 * 必须实现 BaseModel
 *
 * @author QiQi
 */
public class AddressModel extends BaseModel<AddressManagerItem> {
    /**
     *
     * 订单地址json
     * 	"address": "khgjkkbjh",
     *      * 				"phone": "18521315696",
     *      * 				"area": "安徽省、安庆市",
     *      * 				"sid": "ZzLXhC7%2fIzehlOHQ%2fKTH2AuXofCusytrVbfPFD4WJ%2bYzLoGIImYWzd%2f3lJg4uvO7",
     *      * 				"contacts": "vv"
     * 地址列表
     * "num": "1",
     * "sid": "02zlk1K%2fjgPeaBocvi5DHfE9AbUpzCNTsnsjqCa0aKSZfi0wMGPkN1yZdoBPnZPT",
     * "Title": "创研智造k4栋186号5楼",
     * "ClientSid": {
     * "name": "52946081",
     * "sex": "chch"
     * },
     * "AddrCode": "",
     * "IsDefault": "1",
     * "Contacts": "ch",
     * "AreaSid": "",
     * "OtherInf": "",
     * "MPhone": "18521315696",
     * "LatLongitude": ""
     *
     *
     * 	"num": "1",
     * 				"sid": "ZzLXhC7%2fIzehlOHQ%2fKTH2AuXofCusytrVbfPFD4WJ%2bYzLoGIImYWzd%2f3lJg4uvO7",
     * 				"Title": "khgjkkbjh",
     * 				"ClientSid": {
     * 					"name": "74736298",
     * 					"sex": "ch"
     *                                },
     * 				"AddrCode": "",
     * 				"IsDefault": "0",
     * 				"Contacts": "vv",
     * 				"AreaSid": "gaddress_b52adb04a1fe49b4b5cc2061b64ac52c",
     * 				"OtherInf": "",
     * 				"MPhone": "18521315696",
     * 				"LatLongitude": "",
     * 				"AreaNameTree": "安徽省、安庆市"
     */
    private String Contacts;
    private String num;
    private String sid;
    private String Title;
    private String MPhone;
    private String AreaSidTree;
    private String AddrCode;
    private String AreaSid;
    private String OtherInf;
    private int IsDefault;
    private String ClientSid;

    private String LatLongitude;
    private String AreaNameTree;

    public String getContacts() {
        return Contacts;
    }

    public void setContacts(String contacts) {
        Contacts = contacts;
    }

    public String getMPhone() {
        return MPhone;
    }

    public void setMPhone(String MPhone) {
        this.MPhone = MPhone;
    }

    public String getAreaSidTree() {
        return AreaSidTree.replaceAll(",", "");
    }

    public void setAreaSidTree(String areaSidTree) {
        AreaSidTree = areaSidTree;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getAddrCode() {
        return AddrCode;
    }

    public void setAddrCode(String addrCode) {
        AddrCode = addrCode;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getAreaSid() {
        return AreaSid;
    }

    public void setAreaSid(String areaSid) {
        AreaSid = areaSid;
    }

    public String getClientSid() {
        return ClientSid;
    }

    public void setClientSid(String clientSid) {
        ClientSid = clientSid;
    }

    public String getLatLongitude() {
        return LatLongitude;
    }

    public void setLatLongitude(String latLongitude) {
        LatLongitude = latLongitude;
    }

    public String getAreaNameTree() {
        return AreaNameTree;
    }

    public void setAreaNameTree(String areaNameTree) {
        AreaNameTree = areaNameTree;
    }

    public String getOtherInf() {
        return OtherInf;
    }

    public void setOtherInf(String otherInf) {
        OtherInf = otherInf;
    }

    public int getIsDefault() {
        return IsDefault;
    }

    public void setIsDefault(int isDefault) {
        IsDefault = isDefault;
    }

    @Override
    public AddressManagerItem createItem(MultiTypeAdapter adapter) {
        //我的收货地址列表中的Item项
//        return new AddressManagerItem(this, adapter);
        return null;
    }
}
